﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Threading;

namespace FapChiller
{
    public partial class Form1 : Form
    {
        [DllImport("user32.dll")]
        static extern bool BlockInput(bool fBlockIt);

        public Form1()
        {
            InitializeComponent();

            const string page = "<html><head><title></title></head><body style=\"background:black\">{0}</body></html>";
            webBrowser1.DocumentText = string.Format(page, "<iframe width=\"768\" height=\"432\""+
                "src=\"http://www.youtube.com/embed/wSF82AwSDiU?autoplay=1&start=623\" frameBorder=\"0\" allowfullscreen></iframe>");

            Thread blocking = new Thread(BlockingInput);
            blocking.Start();
          
        }

        private void BlockingInput()
        {
            int i;
            for (i = 0; i <= 180; i++)
            {
                BlockInput(true);
                Thread.Sleep(1000);
            }
        }
yo yo yo
 
       
    }
}
